const FormulaTypes = {
  string: 'string',
  number: 'number'
}

const FieldComponentFormulaTypes = {
  input: FormulaTypes.string,
  number: FormulaTypes.number,
  money: FormulaTypes.number,
}

export function getFieldComponentFormula(field) {
  return FieldComponentFormulaTypes[field.component] || FormulaTypes.string
}

export {
  FormulaTypes
}
export default FieldComponentFormulaTypes